package com.itheima.d1_junit;

import org.junit.*;

public class StringUtilTest {
    @AfterClass
    public static void afterClass(){
        System.out.println("类之后");
    }

    @BeforeClass
    public static void befroeClass(){
        System.out.println("类之前");
    }
    @Before
    public void berfore(){
        System.out.println("方法之前");
    }

    @After
    public void after(){
        System.out.println("方法之后");
    }

    @Test
    public void printNumber() {
        StringUtil.printNumber("ksdf");
        StringUtil.printNumber(null);
    }

    @Test()
    public void getMaxIndex() {
        StringUtil.getMaxIndex("sldkjf");
        StringUtil.getMaxIndex(null);
    }
}